Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TripleliftBidAdapter - remove dependency on getTopWindowLocation util #3139

Merged
merged 8 commits into from
Nov 7, 2018

Conversation

brittanyzellman
Copy link
Contributor

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Does this change affect user-facing APIs or examples documented on http://prebid.org?
  • Other

Description of change

Due to util.getTopWindowLocation being deprecated, I updated the adapter to use bidderRequest.refererInfo instead.

Other information

@jaiminpanchal27 @jsnellbaker
issue

if (bidderRequest && bidderRequest.refererInfo) {
let referrer = bidderRequest.refererInfo.referer;
tlCall = utils.tryAppendQueryString(tlCall, 'referrer', referrer);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but should add a unit test.

@harpere
Copy link
Collaborator

harpere commented Oct 9, 2018

@brittanyzellman any update here?

@brittanyzellman
Copy link
Contributor Author

@harpere Sorry I have had to deprioritize writing a new unit test for this (I can't just add this to the existing test) since the start of Q4. I will hopefully get to it within the next week or two. Is there a date that these methods will be removed? I didnt see it in the issue.

@stale
Copy link

stale bot commented Oct 23, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 23, 2018
@stale stale bot removed the stale label Oct 23, 2018
@bretg
Copy link
Collaborator

bretg commented Oct 25, 2018

@harpere - please review the new unit tests

@idettman idettman self-requested a review November 7, 2018 19:05
Copy link
Contributor

@idettman idettman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updates to the unit tests LGTM

@idettman idettman merged commit d644363 into prebid:master Nov 7, 2018
@idettman idettman added LGTM and removed needs review labels Nov 7, 2018
pedrolopezmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Mar 18, 2019
…prebid#3139)

* removed dependancy on getTopWindowUrl for referer

* protect against undefined obj and remove test on old dependency

* added unit test for referer and gdpr in query string

* removed gdpr test

* removed gdpr from bidderRequest obj

* decontructed bidder request obj in chai test

* just need to run karma tests again

* added gdpr consent to all bidderRequest obj in chai tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants